#include <iostream>
#include "mainwindow.h"
#include "opencv.h"
#include <QApplication>
#include "login.h"
#include "setting.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    Login dlg;
    Setting setting(true);
    dlg.show();
    if (dlg.exec() == QDialog::Accepted)
    {
        setting.show();
        if (setting.exec() == QDialog::Accepted)
        {
            MainWindow w(setting.img_width,setting.img_height,setting.trans_flag);
            w.show();
            return a.exec();
        }

    }
    return 0;
}
